package com.life.service;

import com.github.pagehelper.Page;
import com.life.pojo.dto.FileQueryDTO;
import com.life.pojo.entity.File;
import com.life.pojo.vo.FileVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface FileService {

    FileVO save(MultipartFile file, String type) throws IOException;

    Page<FileVO> list(FileQueryDTO fileQueryDTO);

    void delete(Long id);

    void update(File file);
}
